// 权限组
import request from "@/utils/https/requests";
// 列表
export function permissionGroupList(data: any) {
  return request({
    url: "/permissionGroup/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddPermissionGroup(data: any) {
  return request({
    url: "/permissionGroup/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModPermissionGroup(data: any) {
  return request({
    url: `/permissionGroup/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function permissionGroupDetail(id: string) {
  return request({
    url: `/permissionGroup/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeletePermissionGroup(id: string) {
  return request({
    url: `/permissionGroup/postDelete/${id}`,
    method: "post",
  });
}
